﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="NewsEvents.ascx.cs" Inherits="Controls_NewsEvents" %>
<div class="news_event">
    <ul class="tabs">
        <asp:Repeater runat="server" ID="rptNewsEvents">
            <ItemTemplate>
                <%if (Lang)
                  {%>
                <li><a href="/c<%#Eval("CATEGORY_ID").ToString() + "/" + DigiLib.StringUtils.RemoveUnicode(Eval("FULL_CATEGORY_NAME_ENG").ToString(),"-") + ".html" %>">
                    <%#Eval("FULL_CATEGORY_NAME_ENG")%></a></li>
                <%}
                  else
                  { %>
                <li><a href="/c<%#Eval("CATEGORY_ID").ToString() + "/" + DigiLib.StringUtils.RemoveUnicode(Eval("FULL_CATEGORY_NAME").ToString(),"-") + ".html" %>">
                    <%#Eval("FULL_CATEGORY_NAME")%></a></li>
                <%} %>
            </ItemTemplate>
        </asp:Repeater>
        <div class="clear">
        </div>
    </ul>
    <div class="main_news_event">
        <asp:Repeater runat="server" ID="rptData">
            <ItemTemplate>
                <div class="slimpaco2">
                    <a href='/tin-tuc/<%#DigiLib.StringUtils.RemoveUnicode(Eval("FULL_ARTICLE_TITLE").ToString(),"-") + "-c" + Eval("CATEGORY_ID").ToString() + "a" + Eval("ARTICLE_ID").ToString() %>.htm'>
                        <img src="/upload/<%#Eval("THUMB_IMG") %>" alt="addcomm" /></a>
                    <h2>
                        <a href='/tin-tuc/<%#DigiLib.StringUtils.RemoveUnicode(Eval("FULL_ARTICLE_TITLE").ToString(),"-") + "-c" + Eval("CATEGORY_ID").ToString() + "a" + Eval("ARTICLE_ID").ToString() %>.htm'>
                            <%#DigiLib.StringUtils.Substring( Eval("FULL_ARTICLE_TITLE").ToString(),0, 50) %></a></h2>
                    <p>
                        <%#DigiLib.StringUtils.Substring( Eval("FULL_ARTICLE_DESCRIPTION").ToString(),0, 100) %>
                    </p>
                </div>
            </ItemTemplate>
        </asp:Repeater>
        <!--End .slimpaco2-->
    </div>
    <!--End .main_news_event-->
</div>
